package com.blog.admin.dao;

import com.alibaba.fastjson.JSONObject;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.blog.admin.entity.SysUser;
import org.apache.ibatis.annotations.Mapper;
import java.util.List;

@Mapper
public interface SysUserMapper extends BaseMapper<SysUser> {

    List<SysUser> findAll();

    /**
     * 组合查询并分页
     * @return
     */
    List<SysUser> findUserByConditionAndPage(JSONObject param);

    /**
     * 修改用户信息
     */
    void updateById(JSONObject param);

    /**
     * 删除用户
     * @param id
     */
    void deleteById(long id);

}
